<template>
  <div>
      购物车
      <div>
          <van-card
          :num='item.num'
          :price='item.price'
          :title='item.name'
          :thumb='item.pic'
          v-for='(item,index) in this.$store.state.cartList' :key='index'
          >
          <template #thumb>
          <div class="thumb">
            <p><van-image :src="item.pic" /></p>
          </div>
        </template>
        <template #price>
          <span style="color: red; font-size: 14px">￥{{ item.price }}</span>
        </template>
          </van-card>

      </div>
  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  computed: {},
  watch: {},
};
</script>

<style scoped>
</style>